package com.yf.yfwebview

import com.alibaba.android.arouter.facade.annotation.Route
import com.android.baselibrary.arouter.ArouterContains
import com.android.baselibrary.base.BaseActivity
import com.yf.yfwebview.databinding.WebActivityMainBinding
import com.yf.yfwebview.web.WebViewCallBack

@Route(path = ArouterContains.WEBVIEW_MODEL)
class MainActivity : BaseActivity<WebActivityMainBinding>(), WebViewCallBack {

    override fun getLayoutId(): Int=R.layout.web_activity_main

    override fun initView() {
        mBinding.yfWeView.loadUrl("file:///android_asset/demo.html")
        mBinding.yfWeView.registerWebViewCallBack(this)
    }

    override fun initListener() {

    }

    override fun upDateTitle(title: String) {

    }

    override fun startLoad() {

    }

    override fun completeLoad() {

    }

    override fun errorLoad() {

    }
}